﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class EarlyWarning_showHospital : BasePage
{
    public EarlyWarning_showHospital()
    { }

    string _HospitalID = string.Empty;
    string _AreaID = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {
        _HospitalID = HZ.Fun.CheckString(Request.QueryString["HospitalID"]);
        _AreaID = HZ.Fun.CheckString(Request.QueryString["AreaID"]);
        if (!this.IsPostBack)
        {
            DataBind();
        }

    }
    private void DataBind()
    {
        int t = 0;
        HZ.Supervise.IBLL.IBLL_PreWarning pre = HZ.Supervise.BLLFactory.IBLL_PreWarning();
        DataTable dt = pre.GetHospitalName(_HospitalID, _AreaID, AspNetPager1.CurrentPageIndex, AspNetPager1.PageSize, out t);
        AspNetPager1.RecordCount = t;
        this.gridInfo.DataSource = dt;
        this.gridInfo.DataBind();
    }
    protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        DataBind();
    }
}
